package com.gyg.service.impl;

import com.gyg.dao.IUserDao;
import com.gyg.entity.User;
import com.gyg.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * InnoDB free: 11264 kB 服务实现类
 * </p>
 *
 * @author 关注公众号：码猿编程日记
 * @since 2021-09-21
 */
@Service
public class UserServiceImpl  implements IUserService {

    @Autowired
    IUserDao iUserDao;
    @Override
    public User getByUsername(String username) {
        return iUserDao.getByUsername(username);
    }

    @Override
    public User getById(Long id) {
        return iUserDao.getById(id);
    }
}
